import { GET_USERINFO } from '../actionTypes'

const initState = {}
export default function user (state = initState, { type, payload }) {
  console.log(type, payload)
  if (type === GET_USERINFO) {
    return payload
  }
  return state
}
